// 配置组织架构页面路由
import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  code: 'employees', // code是自定义属性，用于保存页面的“权限标志符”
  children: [
    {
      path: '',
      component: () => import('@/views/employees/index.vue'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    {
      path: 'detail/:id',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true// 不需要显示在侧边栏导航上
    }
  ]
}
